Drawing.applyCssBrush Method

Applies any type of brush to a specified property.
 
 
Static This method is static.

Parameters

brush

Type: Brush
A brush; or null to apply no brush.
Optional: True
element

Type: HTMLElement
An element to apply the brush to.
propertyName

Type: String
The name of the root of the CSS property to apply the brush to, for example 'background'.